Deep Learning Algorithm-Based MRI Image in the Diagnosis of Diabetic Macular Edema

This study investigates the value of magnetic resonance imaging (MRI) based on a deep learning algorithm in the diagnosis of diabetic macular edema (DME) patients. A total of 96 patients with DME were randomly divided into the experimental group (N  = 48) and the control group (N  = 48). A deep learning 3D convolutional neural network (3D-CNN) algorithm for MRI images of patients with DME was designed. The application value of this algorithm was comprehensively evaluated by MRI image segmentation Dice value, sensitivity, specificity, and other indicators and diagnostic accuracy. The results showed that the quality of MRI images processed by the 3D-CNN algorithm based on deep learning was significantly improved, and the Dice value, sensitivity, and specificity index data were significantly better than those of the traditional CNN algorithm (P < 0.05). In addition, the diagnostic accuracy of MRI images processed by this algorithm was 93.78 ± 5.32%, which was significantly better than the diagnostic accuracy of 64.25 ± 10.24% of traditional MRI images in the control group (P < 0.05). In summary, the 3D-CNN algorithm based on deep learning can significantly improve the accuracy and sensitivity of MRI image recognition and segmentation in patients with DME, can significantly improve the diagnostic accuracy of MRI in patients with DME, and has a good clinical application value.


Introduction
Diabetic retinopathy is currently one of the four leading causes of blindness in western developed countries. In recent years, the incidence of diabetic retinopathy in China has also gradually increased, seriously affecting the visual function and quality of life of diabetic patients [1]. According to statistics, 7% of patients with a history of diabetes for 10 years have retinopathy and about 25% for 15 years. In patients with type 2 diabetes for 20 years, the incidence of oral hypoglycemic agents is 60% and 84% for insulin injection. Diabetes mellitus is a multisystem disease dominated by glucose metabolism disorders, which easily lead to metabolic disorders in retinal tissue, resulting in abnormal retinal vascular function and structure [2,3]. Diabetic macular edema (DME), defined as a retinal thickening or hard exudate deposition due to diabetes-induced extracellular fluid accumulation within the diameter of one optic disc of the fovea, is one of the common causes of visual impairment in diabetic patients [4,5]. e Early Treatment Diabetic Retinopathy Study (ETDRS) believes that clinically significant DME (CSDME) needs to meet more than one of the following three conditions: (1) retinal edema thickening is in the 500 μm area from the center of the macula, or less than 500 μm; (2) hard exudation is located in the 500 μm area from the center of the macula, or less than 500 μm, accompanied by adjacent retinal thickening; (3) retinal thickening has at least one optic disc diameter (DD) range, and lesions at any site are within 1 DD from the center of the macula [6].
Current studies suggest that the factors affecting DME formation are as follows: severity of diabetic retinopathy, duration of diabetes, posterior vitreous detachment, pregnancy and cataract surgery, and metabolic control. e pathogenesis of DME may include disruption of the bloodretinal barrier, changes in periretinal vascular dynamics, and periretinal vascular hypoperfusion due to retinal macular ischemia [7,8]. FFA is a seminal examination that can identify the extent of macular edema, identify the presence or absence of perfusion areas in macular capillaries or capillary rumen-like bulging, and locate the location of leakage points but cannot objectively quantify reactive retinal thickness changes [9]. OCT is currently recognized as the best method to identify the location and severity of retinal edema, and its sensitivity and specificity for detecting macular edema are about 90%, while due to the high cost of MRI examination, the diagnostic accuracy is not comparable to that of OCT, which makes the clinical use of MRI for the diagnosis of DME disease still relatively less [10].
In recent years, various deep learning algorithms have been fully applied in the field of medical image processing, and various image quality optimization algorithms, image fusion processing algorithms, and image segmentation algorithms have emerged endlessly, especially in the field of MRI image optimization [11]. As one of the most widely used and fastest iterative image processing algorithms, the deep learning algorithm is fully applied in the clinical diagnosis of various diseases such as brain tumors, liver cancer, lung cancer, and cervical cancer [12,13]. However, there are still few reports on deep learning algorithms in the field of DME image processing. Based on this, this study hopes to design a targeted algorithm according to the characteristic information of MRI images of DME patients to realize the rapid segmentation of color vessel regions in the images and the accurate localization and extraction of the characteristic information of injury location.
In summary, this study used the MRI images of the 3D convolutional neural network (3D-CNN) algorithm based on deep learning to monitor DME and comprehensively evaluate the application value of this algorithm by detecting the MRI image quality and diagnostic accuracy of patients with DME. It hopes to provide some reference for the optimization of clinical MRI image diagnosis in patients with DME.

Research Objects and Groups.
Ninety-six patients with DME who received treatment in hospital from March 2018 to March 2021 were selected as the subjects, including 54 male patients and 42 female patients, with the age range of 46-73 years, and the mean age was 59.1 ± 13.4 years. ese 96 patients with DME included 34 patients with serous retinal detachment (SRD), 29 patients with diffuse retinal thickening (DRT), 17 patients with cystoid macular edema (CME), and 16 patients with mixed DME with coexistence of two or three types. All patients were diagnosed by OCT after admission. ey were divided into control group (routinely monitored by MRI images) and experimental group (monitored by MRI images based on deep learning 3D convolutional neural network (CNN) algorithm) according to different treatment methods, with 48 cases for each group.
is study has been approved by the ethics committee of hospital, and all subjects included in the study signed the informed consent form.
Inclusion criteria are as follows: (1) patients meeting the clinical diagnostic criteria of DME; (2) detailed records of FFA, OCT, and FP. Exclusion criteria were as follows: (1) macular edema caused by other causes; (2) severe ophthalmic diseases, such as senile macular degeneration, retinal vein occlusion, anterior ischemic optic neuropathy, retinal capillary dilation, retinal vasculitis, and retinal artery occlusion.

Sequence Parameters of MRI Image Diagnostic Examination for DME.
e conventional MRI scans of the orbit for DME disease used in this study were located axially and sagittally, including transverse T1-weighted image (T1WI), transverse and sagittal T2-weighted image (T2WI), and transverse fluid-attenuated inversion recovery (FLAR). e scanning parameters of the setup in this study are as follows ( Table 1).

Establishment of Segmentation Model of DME Lesions
Based on 3D-CNN Algorithm Based on Deep Learning. In this study, the 3D-CNN algorithm based on deep learning is designed to segment DME lesions based on the traditional CNN.
is model introduces the time dimension into the convolutional kernel operation. In addition, based on preserving the characteristic information of input data, three-dimensional data are added so that the output data after multiple operations are still arranged according to three-dimensional space.
In the model design, the basic framework architecture of the algorithm is carried out according to the CNN structure. e feature extractor is deployed in the overall structure of the network to make the input data enter the network, and the features of different levels of the image are gradually extracted through the convolution layer, pooling layer, and nonlinear function activation layer. e nonlinear activation function-ReLU function is introduced between the upper and lower input of the activation layer, and then the MRI image segmentation task of DME patients in this study is divided into different output categories. e Dice loss function is introduced to solve the problem of uneven classification in the data processing so as to better realize the MRI image segmentation of DME. Dice score coefficient (DSC) is one of the evaluation indexes based on pixel overlap [14]. e calculation equation of the convolution layer is shown in (1), the mathematical expression of the ReLU function is shown in (2), and the calculation equation of DSC is shown in (3). (1) K a−1 represents the feature map information of the previous layer, B a represents the offset, and D a represents the weight matrix. Each row in the matrix corresponds to the weight of the neuron connected to all the neurons in the previous layer.

Contrast Media & Molecular Imaging
In (3), g j represents the pixel value of point j in the prediction results and h j represents the pixel value of point j in the true value label. e sum of M pixels is calculated. e gradient equation is shown in (4). e loss function of DME image segmentation can be expressed as in (5).
e number of pixels is represented by i in (4), V represents a category in (5), and v represents a category in the study of the DME segmentation task. g represents the segmentation result area predicted by the network, h represents the segmentation area calibrated by the true value label, j represents any pixel in the image, and g j,f h j,f represents the numerical parameters of the predicted output and the output pixel of the true value label area at j.
In order to adapt to the dense connection operation in 3D CNN, the jump structure is used to connect the feature maps of each layer in this study, and then the feature maps of all layers are connected in series. On this basis, in order to solve the gradient dispersion problem in the data processing of deep convolution neural network, this study introduces the residual structure [15], and the results of the addition operation between the input data and the output data are correlated by a bypass (shortcut structure). en the deep network model is constructed. e corresponding expression of the jump structure is shown in (6), and the output expression of the residual unit is shown in (7).
e C(·) function in (6) represents the fitting target in CNN, and V(S 1 , ω 1 ) represents the convolution operation in (7), ω 1 represents the weight parameter in the network, and C 1 represents the network output of the first layer. If H(·) is an identity map, it is expressed as (8), then the network output C 1 of the residual structure of the first layer can be expressed as in (9).
e overall output of the residual structure unit is a linear addition between the original data of the input image and the output data after the convolution operation. In this way, the output of the entire network can be represented by an addition algorithm. Assuming that there are a total of M residual structure network units in the network, the overall output of the residual network can be expressed by the following: In this study, the convolution layer setting in the deep learning 3D convolution mode is used to the residual structure unit, and the batch normalization (BN) layer is changed to the group normalization (GN) layer operation in the residual structure. Firstly, the input MRI image information in this model will pass through the convolution layer whose convolution kernel size is set to 3 × 3 × 3, then pass through the GN layer to accelerate the convergence ability of the network, then pass through the nonlinear activation function layer, and will be entered into a convolution layer whose convolution kernel size is set to 3 × 3 × 3, which is used to extract the feature information of the interested target area in the data. e superposition of two 3D convolution layers deepens the depth of the network. Such a structure can greatly reduce the computational complexity without reducing the network performance in the MRI image segmentation task of DME. e structure pattern of the lesion feature extraction network of the DME MRI image is illustrated in Figure 1, and the final algorithm processing flow is illustrated in Figure 2.

MRI Image Quality Assessment Based on Artificial
Intelligence 3D-CNN Algorithm. In this study, the experimental environment based on deep learning 3D-CNN algorithm is as follows: 12G Titanx device, Ubuntu16.04 system for related training, and BraTs2017 dataset for algorithm simulation training. e deep learning frameworks Tensorflow and Keras are used.
In this study, the lesion range of the DME area (S) outlined by two radiologists was compared with the lesion range determined by the image segmentation of the artificial intelligence algorithm (O). e coincidence degree between the true DME lesion area (Q) and the DME lesion area (O) determined by artificial intelligence algorithm was fitted to calculate the accuracy (Dice), sensitivity, specificity, and Haus distance of the algorithm for MRI imaging diagnosis of patients with DME. e Haus distance can evaluate the degree of fitting between the two different ways to determine the lesion area, which refers to the maximum value of the shortest distance from one point to another point set [16]. e mathematical expressions of Dice, sensitivity, specificity, and Haus distance are shown in (11)- (14).
P and R represent other locations outside the real DME lesion area and other locations outside the DME lesion area determined by an artificial intelligence algorithm. In addition, according to the different structural groups of DME, three overlapping tumor regions are divided, which are the whole lesion, the lesion core area, and the enhanced lesion area.
2.5. MRI Diagnosis Analysis of DME. In this study, the diagnostic results of MRI images and actual pathological results of patients with DME between the traditional CNN algorithm and artificial intelligence 3D-CNN algorithm were compared, the diagnostic accuracy of patients with DME before treatment and after treatment with the two algorithms was calculated, and the application value of 3D-CNN algorithm based on deep learning for MRI image diagnosis of patients with DME was comprehensively evaluated.

Statistical Methods.
e test data were processed by SPSS 19.0 statistical software. e measurement data were expressed as mean ± standard deviation (x ± s).
e comparison of mean between groups was performed by t-test.
e enumeration data were expressed as percentage (%).. e χ 2 test was used. e differences were statistically significant when P < 0.05.

Summary of Basic Information of Patients in the Two
Groups. Figure 3 shows the comparison of basic information of two groups of patients with DME.
ere was no significant difference in gender distribution, mean age, type of DME, and mean duration of disease between the two groups of DME patients, with no statistical significance (P > 0.05).

MRI Images of Patients with DME Processed by Different
Algorithms. Figure 4 shows the MRI images of patients in the two groups, and Figure 5 shows the comparison of MRI images of patients with DME processed by different algorithms. Figures 4(a) In the initial state, there was no significant difference in the MRI image quality between the experimental group and the control group. After processing by the deep learning 3D-CNN algorithm, the overall clarity and contrast of the MRI images of the experimental group were significantly improved, the recognition performance of the lesions in the MRI images of patients with DME was greatly increased, and the accuracy of the edge division of the lesion site was significantly improved, making the display of the ocular structure of the transverse and sagittal images of MRI clearer and intuitive, and the difficulty in the diagnosis of macular edema was further reduced.
Figures 5(a)-5(c) are the MRI images of patients from the experimental group, which are the initial MRI images without algorithm processing, the MRI images with conventional CNN algorithm processing, and the MRI images with deep learning 3D-CNN algorithm processing, respectively. Compared with Figure 5(a), the clarity of MRI images in Figures 5(b) and 5(c) is improved to some extent, and the MRI image quality in Figure 5(c) is relatively high. In addition, Figures 5(b) and 5(c) compare stereoscopic and intuitive for imaging the ocular structures of patients with DME, which is more helpful for disease diagnosis.

Evaluation of MRI Image Quality Based on Artificial Intelligence 3D Convolution Neural Network Algorithm
Processing. Figure 6 shows a comparison of the diagnostic indicators for the conventional CNN algorithm and the MRI image processing based on the deep learning 3D-CNN algorithm. Figures 6(a)-6(d) are the comparison plots of Dice value, sensitivity value, specificity value, and Haus distance of the two algorithms. e mean Dice value of the MRI images processed by the traditional CNN algorithm is 0.6855, and the resulting interval is (0.58, 0.77). e mean Dice value of the MRI images processed by the deep learning 3D-CNN algorithm is 0.898, and the resulting interval is (0.83, 0.97), with a significant difference between the two groups (P < 0.05   Figure 7 shows the comparison of diagnostic accuracy of MRI images of DME patients with different algorithms. e diagnostic accuracy of conventional MRI images was 64.25 ± 10.24% in  the control group and 79.85 ± 9.11% in the experimental group under the traditional CNN algorithm. However, the diagnostic accuracy of MRI images of DME patients in the experimental group processed by the 3D-CNN algorithm based on deep learning was 93.78 ± 5.32%. Compared with the diagnostic accuracy of conventional multimodal MRI images, the diagnostic accuracy of the two algorithms increased significantly (P < 0.05), and the diagnostic accuracy of the artificial intelligence 3D-CNN algorithm also increased significantly compared with the traditional CNN algorithm (P < 0.05).

Discussion
In recent years, in-depth learning technology has been continuously updated and iterated and is used as an auxiliary diagnosis and treatment method in the imaging diagnosis process of various common clinical diseases. CNN algorithm based on deep learning has gradually replaced supervised learning as an effective computer-assisted artificial intelligence medical image processing method by virtue of its model learning ability and highly automated target feature information grasping ability [17,] is widely used in the field of medical image segmentation for various diseases such as brain tumors, lung cancer, liver cancer, breast cancer, and gastric cancer, and has achieved good experimental results [18]. At present, the main object of the artificial intelligence  Figure 7: Comparison of imaging diagnostic accuracy of different algorithms. Note: * indicated that the difference in diagnostic accuracy compared with conventional MRI images was significant (P < 0.05); & indicated that the difference in diagnostic accuracy compared with CNN algorithm was significant (P < 0.05).
imaging algorithm for DME is OCT. Recently, Singh and Gorantla [19] mentioned that the CNN algorithm has a good effect on color fundus image screening in patients with DME.
In this study, a 3D-CNN algorithm based on deep learning was designed according to the MRI image characteristics of patients with DME and used in the clinical MRI image diagnosis of DME disease. e results showed that compared with the MRI images of the control group, the overall clarity and contrast of the MRI images of the experimental group treated with deep learning 3D-CNN algorithm were significantly improved, the recognition performance of the MRI image lesions and the accuracy of the edge division of the lesion site were significantly improved, and the ocular structure display of the transverse and sagittal images of the MRI images was more stereoscopic and intuitive. In addition, compared with the traditional CNN algorithm, the clarity of MRI images and the recognition performance of lesions of the 3D-CNN algorithm based on deep learning were significantly improved, and the Dice value, sensitivity, and specificity index data were significantly better than those of the traditional CNN algorithm (P < 0.05). e Haus distance data of the two algorithms were 0.920 and 0.916, respectively, and the difference was not statistically significant (P > 0.05). By comparing the clinical diagnostic accuracy of patients with DME treated with different processing methods, the diagnostic accuracy of MRI images processed with the 3D-CNN algorithm designed in this study based on deep learning was 93.78 ± 5.32%, which was significantly better than the diagnostic accuracy of traditional MRI images in the control group (P < 0.05) and also significantly improved compared with the diagnostic efficacy of MRI images under the optimization of traditional CNN algorithm (P < 0.05). e results are consistent with the study conclusions of Zhang et al. [20], indicating that the MRI image algorithm based on deep learning can improve the MRI image quality to a great extent, optimize the identification process of disease characteristics images, and improve the efficiency of disease diagnosis. However, the relevant optimization procedure of the 3D-CNN algorithm based on deep learning is very complex and remains to be further studied.
It shows that the deep learning algorithm has a good utilization value in MRI image monitoring of DME and can well provide some expansion ideas for improving the clinical diagnostic accuracy of patients with DME from the imaging point of view.

Conclusion
A deep learning 3D-CNN algorithm for MRI image characteristics of DME patients is designed and applied to the clinical diagnosis of DME patients. e results showed that the intelligent recognition and segmentation performance of the 3D-CNN algorithm based on deep learning for MRI images in patients with DME was significantly improved compared with the traditional CNN algorithm, and the diagnostic accuracy was also significantly improved.
However, there are some shortcomings as follows: the sample size of patients with various types of DME is relatively small and the corresponding algorithm optimization analysis is not performed for the MRI image characteristics of patients with different types of DME. In addition, the monitoring index of MRI image segmentation quality based on the deep learning 3D-CNN algorithm used in this study was relatively small, and the performance evaluation of this algorithm was relatively single. en, the algorithm will be further optimized, and more performance evaluation indexes will be included to perform multiangle comprehensive analysis for the application value of this algorithm. In conclusion, this study confirmed that the image characteristics of MRI based on deep learning algorithm have a good application value in the clinical diagnosis of DME patients, which is worthy of further clinical promotion and provides a reference basis for the imaging diagnosis, treatment, and monitoring of clinical DME patients.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest
e authors declare no conflicts of interest.